<link rel="stylesheet" href="${ctx}/plugins/layer/skin/default/layer.css">
<div class="panel panel-default" style="margin-bottom: 0px;height: 100%;">
    <div class="panel-heading" style="padding: 3px 15px;overflow: hidden">
        推荐顾问
        <button class="btn btn-default btn-sm" style="float: right;" onclick="getSelectData()">获取选择数据</button>

    </div>
    <div class="panel-body" style="padding: 5px;">
        <table id="datatable" data-url="/user/queryByUserPage.do" ishascheck="true">
        </table>
    </div>
</div>
<script src="${ctx}/plugins/laypage/laypage.js"></script>
<script type="text/javascript" src="${ctx}/plugins/myplugin/tablepage.js"></script>
<script>
    /*需要分页*/
    $("#datatable").tablepage();
    /*不需要分页*/
    //    $("#datatable").table();
    function getSelectData() {
        alert(JSON.stringify($("#datatable").getTableSelects()));
    }
</script>